package cn.edu.neusoft.amicooldemo.service;

import java.util.List;

import cn.edu.neusoft.amicooldemo.bean.ArticleBean;
import cn.edu.neusoft.amicooldemo.bean.CollectResult;
import cn.edu.neusoft.amicooldemo.bean.ProjectBean;
import cn.edu.neusoft.amicooldemo.bean.TcaseBean;
import cn.edu.neusoft.amicooldemo.bean.TwareBean;
import cn.edu.neusoft.amicooldemo.bean.VideoBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by Neusoft on 2016/12/22.
 */

public interface CollectService {
    @GET("api.php/listmycollect/mod/collect{mod}")
    Call<List<CollectResult<VideoBean>>> getCVideoList(@Path("mod")String mod, @Query("page") int page, @Header("SessionID") String sessionID);

    @GET("api.php/listmycollect/mod/collect{mod}")
    Call<List<CollectResult<ArticleBean>>> getCArticleList(@Path("mod")String mod, @Query("page") int page, @Header("SessionID") String sessionID);

    @GET("api.php/listmycollect/mod/collect{mod}")
    Call<List<CollectResult<TcaseBean>>> getCTcaseList(@Path("mod")String mod, @Query("page") int page, @Header("SessionID") String sessionID);

    @GET("api.php/listmycollect/mod/collect{mod}")
    Call<List<CollectResult<TwareBean>>> getCTwareList(@Path("mod")String mod, @Query("page") int page, @Header("SessionID") String sessionID);

    @GET("api.php/listmycollect/mod/collect{mod}")
    Call<List<CollectResult<ProjectBean>>> getCProjectList(@Path("mod")String mod, @Query("page") int page, @Header("SessionID") String sessionID);

    @GET("api.php/create/mod/collect{mod}")
    Call<String> collect(@Path("mod")String mod, @Query("resid") int resid, @Header("SessionID") String sessionID);

    @GET("api.php/delete/mod/collect{mod}")
    Call<String> uncollect(@Path("mod")String mod, @Query("resid") int resid, @Header("SessionID") String sessionID);

    @GET("api.php/exists/mod/collect{mod}")
    Call<String> exists(@Path("mod") String mod, @Query("resid") int resid, @Header("SessionID") String sessionID);
}
